import request from '@/utils/request'

// 查询样品报告列表
export function listSimpleReport(query) {
  return request({
    url: '/simple/simpleReport/list',
    method: 'get',
    params: query
  })
}

// 查询样品报告详细
export function getSimpleReport(orderDetailReportId) {
  return request({
    url: '/simple/simpleReport/' + orderDetailReportId,
    method: 'get'
  })
}

// 新增样品报告
export function addSimpleReport(data) {
  return request({
    url: '/simple/simpleReport',
    method: 'post',
    data: data
  })
}

// 修改样品报告
export function updateSimpleReport(data) {
  return request({
    url: '/simple/simpleReport',
    method: 'put',
    data: data
  })
}

// 删除样品报告
export function delSimpleReport(orderDetailReportId) {
  return request({
    url: '/simple/simpleReport/' + orderDetailReportId,
    method: 'delete'
  })
}

// 导出样品报告
export function exportSimpleReport(query) {
  return request({
    url: '/simple/simpleReport/export',
    method: 'get',
    params: query
  })
}